]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/thunderbolt: Small style cleanup
authorJulian Sparber <julian@sparber.net>
Tue, 13 Feb 2024 15:00:43 +0000 (16:00 +0100)
committerJulian Sparber <julian@sparber.net>
Tue, 13 Feb 2024 15:02:56 +0000 (16:02 +0100)
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3188>

js/ui/status/thunderbolt.js

index df362239300825eb9793f06212b550034c02d2b9..9e33c21f55c8e1a868ecaa6d7525dcd44c8fc5ab 100644 (file)
@@ -265,9 +265,8 @@ class Indicator extends SystemIndicator {
             this._notification = null;
         });
         this._notification.connect('activated', () => {
-            let app = Shell.AppSystem.get_default().lookup_app('gnome-thunderbolt-panel.desktop');
-            if (app)
-                app.activate();
+            const app = Shell.AppSystem.get_default().lookup_app('gnome-thunderbolt-panel.desktop');
+            app?.activate();
         });
         source.showNotification(this._notification);
     }